//
//  AllTableViewCell.m
//  Dome
//
//  Created by 沙斌 on 16/4/22.
//  Copyright © 2016年 Dxy. All rights reserved.
//

#import "AllTableViewCell.h"
#import <Masonry/Masonry.h>

@interface AllTableViewCell()


@end

@implementation AllTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)initcell{

    _img = [[UIImageView alloc]init];
    _img.backgroundColor = [UIColor blackColor];
    [self.contentView addSubview:_img];
    
    _label = [[UILabel alloc]init];
    _label.text=@"110";
    [self.contentView addSubview:_label];
    
    _text = [[UILabel alloc]init];
    _text.text=@"120";
    [self.contentView addSubview:_text];
    
    
    [_img mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.left.equalTo(self.contentView.mas_left).with.offset(30);
        make.width.equalTo(@80);
        make.height.equalTo(@80);
    }];
    
    [_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_img.mas_top);
        make.left.equalTo(_img.mas_right).with.offset(20);
        make.height.equalTo(@13);
        make.width.equalTo(@70);
    }];
    [_text mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_label.mas_bottom).with.offset(-5);
        make.left.equalTo(_img.mas_right).with.offset(20);
        make.bottom.equalTo(_img.mas_bottom);
        make.right.equalTo(self.contentView.mas_right).with.offset(-10);
    }];

}

@end
